package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.SettlementCostDO;
import com.mhc.suzuki.dal.query.SettlementCostQuery;

import java.util.List;


/**
 * Manager for SettlementCost.
 */
public interface SettlementCostManager {
    /**
     * query count by query condition.
     */
    int countByQuery(SettlementCostQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SettlementCostQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SettlementCostDO record);

    /**
     * insert selective.
     */
    long insertSelective(SettlementCostDO record);

    /**
     * select by query condition.
     */
    List<SettlementCostDO> selectByQuery(SettlementCostQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SettlementCostDO> selectByQueryWithPage(SettlementCostQuery query);

    /**
     * select by primary key.
     */
    SettlementCostDO selectByPrimaryKey(Long id);

    /**
     * select by order no.
     */
    List<SettlementCostDO> selectByOrderNo(String orderNo);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SettlementCostDO record,  SettlementCostQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SettlementCostDO record, SettlementCostQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SettlementCostDO record);
}
